//
//  NoticeAdvertismentMoreTableViewCell.m
//  PropertyManager
//
//  Created by TNG on 2018/7/17.
//  Copyright © 2018年 Tng. All rights reserved.
//

#import "NoticeAdvertismentMoreTableViewCell.h"

@implementation NoticeAdvertismentMoreTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(instancetype) initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self creatUI];
        self.backgroundColor = SFM242;
        self.selectionStyle = UITableViewCellSeparatorStyleNone;
    }
    return self;
}

-(void)creatUI{
    [self.contentView addSubview:self.bgView];
    [self.bgView addSubview:self.moreLabel];
}

-(UIView *)bgView
{
    if (_bgView == nil) {
        _bgView = [[UIView alloc] initWithFrame:CGRectMake(15, 0, WIDTH - 30, 44)];
        _bgView.backgroundColor = SFMWhiteColor;
    }
    return _bgView;
}

-(UILabel *)moreLabel
{
    if (_moreLabel == nil) {
        _moreLabel= [[UILabel alloc] initWithFrame:CGRectMake(15, 0, WIDTH - 60, 44)];
        _moreLabel.font = font(14);
        _moreLabel.textColor = SFM153;
        _moreLabel.textAlignment = NSTextAlignmentRight;
        _moreLabel.text = @"查看更多 >";
    }
    return _moreLabel;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
